package com.wzbc.video.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {
    @TableId(value = "user_id",type = IdType.AUTO)
    private Long userId;

    private String username;

    private String nickname;

    private String password;

    private Integer identity;

    public User(String username,String password){
        this.username=username;
        this.password=password;
    }
}
